package matt.design;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.WindowManager;

public class SplashScreen extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash_screen);
		
		Timer longPressTimer = new Timer();
         longPressTimer.schedule(new TimerTask() {
             @Override
             public void run() {
             	startActivity(new Intent(getApplicationContext(), LoginActivity.class));
             }

         }, 3000);
	}
	
	protected void onResume() {
		Timer longPressTimer = new Timer();
        longPressTimer.schedule(new TimerTask() {
            @Override
            public void run() {
            	startActivity(new Intent(getApplicationContext(), LoginActivity.class));
            }

        }, 1000);
		super.onResume();
	}
}
